<%-- 
    Document   : index
    Created on : 18-nov-2013, 11.35.34
    Author     : Ilo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html dir="ltr" lang="it-IT">
    <head>
        <title>EvenTO::Login</title>

        <jsp:include page="html/metadata.jsp" flush="true" />
    </head>
    <body>
        <div id="evento-main">
            <!-- header -->
            <jsp:include page="html/header.jsp" flush="true" />
            <!-- /header -->

            <!-- top-menu -->
            <%@include file="html/top-menu.jsp" %>
            <!-- /top-menu -->

            <div class="evento-sheet clearfix">
                <div class="evento-layout-wrapper">
                    <div class="evento-content-layout">
                        <div class="evento-content-layout-row">
                            <div class="evento-layout-cell evento-content">
                                <article class="evento-post evento-article">
                                    <div class="evento-postmetadataheader">
                                        <h2 class="evento-postheader">Login</h2>
                                    </div>

                                    <%
                                        String hideError = "";
                                        if(request.getParameter("error") == null) {
                                            hideError = "hide";
                                        }
                                    %>
                                    <div class="evento-postcontent evento-postcontent-0 clearfix <%= hideError %>">
                                        <h3>Si &egrave; verificato un errore durante il login</h3>
                                        <a href="index.jsp">Torna indietro</a>
                                    </div>
                                    
                                    <form action="Controller" method="post" name="login" id="frmLogin">
                                        <fieldset class="input" style="border: 0 none;">
                                            <input type="hidden" name="type" value="login" />
                                            <input type="hidden" name="pwd" id="modlgn_pwd" />
                                            <input type="hidden" name="redirect" value='<%= request.getParameter("redirect") %>' />
                                            <p id="form-login-username">
                                                <div class="input-group input-group-sm">
                                                    <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
                                                    <input id="modlgn_username" type="text" name="username" class="form-control" placeholder="Username" alt="Username" />
                                                </div>
                                            </p>
                                            <br>
                                            <p id="form-login-password">
                                                <div class="input-group input-group-sm">
                                                    <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
                                                    <input id="modlgn_passwd" type="password" name="passwd" class="form-control" placeholder="Password" alt="Password" />
                                                </div>
                                            </p>
                                            <p id="form-login-remember">
                                                <label class="evento-checkbox">
                                                    <input type="checkbox" id="modlgn_remember" name="remember" alt="Ricordami" />Ricordami
                                                </label>
                                            </p>
                                            <br>
                                            <input type="submit" id="modlgn_login" value="Login" name="Submit" class="evento-button" />    
                                        </fieldset>
                                        <ul>
                                            <!--
                                            <li>
                                                <a href="#">Forgot your password?</a>
                                            </li>
                                            <li>
                                                <a href="#">Forgot your username?</a>
                                            </li>
                                            -->
                                            <li>
                                                <a href="createAccount.jsp">Registrati</a>
                                            </li>
                                        </ul>
                                    </form>
                                </article>
                                
                            </div>                            
                        </div>
                    </div>
                </div>

                <!-- footer -->
                <%@include file="html/footer.jsp" %>
                <!-- /footer -->

            </div>
        </div>
    </body>
</html>
